import Layout from '@/views/layout/Layout'

const taobao = {
  path: '/taobao',
  component: Layout,
  // name: 'bargain_manage',
  alwaysShow: true,
  meta: { title: '淘宝客业务', roles: ['1', '21'], icon: 'taobao' },
  children: [
    {
      path: 'statement',
      redirect: { name: 'statement.total' },
      component: () => import(/* webpackChunkName: "chunk-taobao" */ '@/views/taobao/statement/index'),
      meta: { title: '报表', icon: 'subsystem' },
      children: [
        {
          path: 'total',
          name: 'statement.total',
          component: () => import(/* webpackChunkName: "chunk-taobao" */ '@/views/taobao/statement/total/index'),
          meta: { title: '总报表', icon: 'baobiao' }
        },
        {
          path: 'complete',
          name: 'statement.complete',
          component: () => import(/* webpackChunkName: "chunk-taobao" */ '@/views/taobao/statement/complete/index'),
          meta: { title: '投放完成报表', icon: 'baobiao' }
        },
        {
          path: 'underway',
          name: 'statement.underway',
          component: () => import(/* webpackChunkName: "chunk-taobao" */ '@/views/taobao/statement/underway/index'),
          meta: { title: '投放中报表', icon: 'baobiao' }
        }
      ]
    },
    {
      path: 'performance',
      name: 'taobao.performance',
      component: () => import(/* webpackChunkName: "chunk-taobao" */ '@/views/taobao/sales_volume'),
      meta: { title: '员工业绩', icon: 'subsystem' }
    },
    {
      path: 'daily_detail',
      redirect: { name: 'daily_detail.total' },
      component: () => import(/* webpackChunkName: "chunk-taobao" */ '@/views/taobao/daily_detail/index'),
      meta: { title: '每日明细', icon: 'subsystem' },
      children: [
        {
          path: 'total',
          name: 'daily_detail.total',
          component: () => import(/* webpackChunkName: "chunk-taobao" */ '@/views/taobao/daily_detail/total/index'),
          meta: { title: '总数据', icon: 'meiri' }
        },
        {
          path: 'complete',
          name: 'daily_detail.complete',
          component: () => import(/* webpackChunkName: "chunk-taobao" */ '@/views/taobao/daily_detail/complete/index'),
          meta: { title: '投放完成数据', icon: 'meiri' }
        },
        {
          path: 'underway',
          name: 'daily_detail.underway',
          component: () => import(/* webpackChunkName: "chunk-taobao" */ '@/views/taobao/daily_detail/underway/index'),
          meta: { title: '投放中数据', icon: 'meiri' }
        }
      ]
    },
    {
      path: 'daily_detail_edit',
      name: 'taobao.daily_detail.edit',
      hidden: true,
      component: () => import(/* webpackChunkName: "chunk-taobao" */ '@/views/taobao/daily_detail/detail'),
      meta: { title: '每日明细详情', icon: 'subsystem' }
    },
    {
      path: 'tencentData',
      name: 'taobao.tencentData',
      component: () => import(/* webpackChunkName: "taobao" */ '@/views/taobao/tencentData/index'),
      meta: { title: '公众号数据', icon: 'subsystem' }
    },
    {
      path: 'tencentDetail',
      name: 'taobao.tencentData.detail',
      hidden: true,
      component: () => import(/* webpackChunkName: "chunk-taobao" */ '@/views/taobao/tencentData/detail'),
      meta: { title: '公众号详情', icon: 'subsystem' }
    },
    {
      path: 'launch_company',
      name: 'taobao.launch_company',
      component: () => import(/* webpackChunkName: "chunk-taobao" */ '@/views/taobao/launch_company/index'),
      meta: { title: '投放公司', icon: 'subsystem' }
    },
    {
      path: 'company_edit',
      name: 'taobao.launch_company.edit',
      hidden: true,
      component: () => import(/* webpackChunkName: "chunk-taobao" */ '@/views/taobao/launch_company/edit'),
      meta: { title: '投放公司修改', icon: 'subsystem' }
    },
    {
      path: 'recharge',
      name: 'taobao.recharge',
      component: () => import(/* webpackChunkName: "chunk-taobao" */ '@/views/taobao/recharge/index'),
      meta: { title: '充值记录', icon: 'subsystem' }
    }
  ]
}

export default taobao
